package com.baize.minespace.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
* <p>
* 文章标签关联表
* </p>
*
* @author baize
* @since 2024-04-15
* @version ${cfg.version}
*/
@ApiModel(value = "PostTags对象", description = "文章标签关联表")
@ToString
@Data
@Accessors(chain = true)
@TableName("PostTags")
public class PostTags implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 关联记录唯一标识符
     */
    @ApiModelProperty(value = "关联记录唯一标识符")
    @TableId(value = "id", type = IdType.AUTO)
    @TableField("id")
    private Integer id;
    /**
     * 外键，关联到文章元数据表
     */
    @ApiModelProperty(value = "外键，关联到文章元数据表")
    private Integer postId;
    /**
     * 外键，关联到标签表
     */
    @ApiModelProperty(value = "外键，关联到标签表")
    private Integer tagId;
}
